home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
ums
/
IntuiNews1_4a.lha
/
UMS
/
Rexx
/
DFA.intui
< prev
next >
Wrap
Text File
|
1995-08-27
|
1KB
|
68 lines
/*
$VER: DFA.intui 1.0 (27.8.95)
Author:
Matthias Scheler <tron@lyssa.owl.de>
Function:
Lets DFA handle IntuiNews's address book
History:
0.1 initial version
0.2 added "ADD" handling
0.3 fixed bug in "QUERY" handling
1.0 released with IntuiNews 1.3
Requires:
UMSServer 11.28 or newer
ums.library 11.18 or newer
DFA 2.25 or newer, at least server running
Example for "ums.config":
( IntuiNews.Book "!DFA.intui" )
*/
IF ~SHOW('P','DFA') THEN EXIT 10
PARSE ARG Command " " Name "," Addr "," Comment
OPTIONS RESULTS
SIGNAL ON ERROR
IF Command="QUERY" THEN
DO
ADDRESS 'DFA' 'FIRST STEM ADR.'
IF ADR.ADDRESS.24 = 0 THEN ADDRESS 'DFA' 'NEXTSEL STEM ADR.'
DO WHILE 1
IF ADR.ADDRESS.12~="" THEN
'ADD "'||ADR.ADDRESS.1 ADR.ADDRESS.2||'" "'||ADR.ADDRESS.12||'" "'||ADR.ADDRESS.15||'"'
IF ADR.ADDRESS.13~="" THEN
'ADD "'||ADR.ADDRESS.1 ADR.ADDRESS.2||'" "'||ADR.ADDRESS.13||'" "'||ADR.ADDRESS.15||'"'
IF ADR.ADDRESS.14~="" THEN
'ADD "'||ADR.ADDRESS.1 ADR.ADDRESS.2||'" "'||ADR.ADDRESS.14||'" "'||ADR.ADDRESS.15||'"'
ADDRESS 'DFA' 'NEXTSEL STEM ADR.'
END
END
IF Command="ADD" THEN
DO
P=LASTPOS(" ",Name)
IF P=0 THEN First=""
ELSE
DO
First=LEFT(Name,P-1)
Name=SUBSTR(Name,P+1)
END
ADDRESS 'DFA' 'POPUP'
ADDRESS 'DFA' 'NEW FIRST "'||First||'" NAME "'||Name||'" EMAIL1 "'||Addr||'" COMMENT "'||Comment||'"'
END
ERROR:
EXIT 0